package t327.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import t327.mapper.ClientMapper;

import t327.pojo.Client;
import t327.service.iter.IClientService;

import java.util.List;


@Service
@Transactional
public class ClientServiceImpl implements IClientService {
    @Autowired
    private ClientMapper clientMapper;

    @Override
    public List<Client> queryAll() {
        return clientMapper.queryAll();
    }

    @Override
    public int addClient(Client client) {
        return clientMapper.addClient(client);
    }

    @Override
    public int deleteClientById(Long clientId) {
        return clientMapper.logicDeleteClientById(clientId);
    }


    @Override
    public int updateClient(Client client) {
        return clientMapper.updateClient(client);
    }


}
